﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;

namespace BUS
{
    public class ThuChiBUS
    {
        public static bool InsertPhieu(PhieuThuChiDTO phieutc)
        {
            return ThuChiDAO.InsertPhieu(phieutc);
        }

        public static bool UpdatePhieu(PhieuThuChiDTO phieutc)
        {
            return ThuChiDAO.UpdatePhieu(phieutc);
        }

        public static List<PhieuThuChiDTO> SelectPhieuByAll()
        {
            return ThuChiDAO.SelectPhieuByAll();
        }

        public static List<PhieuThuChiDTO> SelectPhieuByNgayDauNgayCuoi(DateTime ngaydau, DateTime ngaycuoi)
        {
            return ThuChiDAO.SelectPhieuByNgayDauNgayCuoi(ngaydau, ngaycuoi);
        }

        public static int GetMaxMa()
        {
            return ThuChiDAO.GetMaxMa();
        }
    }
}
